Xbasic

UNZIP_FILELIST Function

Syntax

Extracted_Files as C = Unzip_FileList(C zipfile [,C filelist [,C destination_folder [,L preserve_Paths [,L PromptOverwrite ]]]])

Arguments

Extracted_Files

A CR-LF delimited list of extracted files.

zipfileCharacter

The path and name of the zip file.

filelistCharacter

Default = "" (all files). A CR-LF delimited list of files to extract from the zip file.

destination_folderCharacter

Default = "" (uses paths in zip file). Where to place the extracted files.

preserve_PathsLogical

Default = .T.. Whether to preserve path information in the zip file under the Destination_Folder.

PromptOverwriteLogical

Default = .T.. Whether to prompt the user when files are going to be overwritten.

Description

The UNZIP_FILELIST() function extracts all or specified files from a ZIP file to a specified directory.

? unzip_filelist("c:\backup\Alphasportsa5v71.zip", "", "c:\temp\\", .f.) = database
program files\a5v7\samples\alphasports\AlphaSports.ALB
program files\a5v7\samples\alphasports\AlphaSports.ALM
program files\a5v7\samples\alphasports\Alphasports.Alx
...
UNZIP_FILELIST does not support password protected zip archives.

See Also